from rest_framework import permissions
from rest_framework import viewsets
from usercenter.models import StaffProfile
from .serializers import StaffSerializer


class StaffProfileViewSet(viewsets.ModelViewSet):
    """
    员工管理api
    """
    queryset = StaffProfile.objects.all()
    serializer_class = StaffSerializer
    permission_classes = (permissions.IsAuthenticated,)
